import { getFile, handleRawData, outToFile } from "./utils";
import { INPUT_FILE_NAME, OUTPUT_FILE_NAME } from "./settings";
import Solver from "./entity/solver";

const rawData = getFile(INPUT_FILE_NAME);
const puzzle = handleRawData(rawData);
const solver = new Solver(puzzle);
solver.solve();
solver.showAnswer();
outToFile(solver.table, OUTPUT_FILE_NAME);
